export const highlightKeyword = (text: string, keyword?: string) => {
  if (!keyword) {
    return text;
  }
  const reg = new RegExp(keyword, 'gi');
  const matchs=text.match(reg)
  if(!matchs){
    return text
  }
  return text.replace(reg, (match) => `<span class="highlight">${match}</span>`);
};